package jejunu.androboys.QuickCall;

import jejunu.androboys.QuickCall.Component.AddressBook;
import jejunu.androboys.QuickCall.Component.AddressBookListAdapter;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

public class AddressListActivity extends Activity 
{

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
	    super.onCreate(savedInstanceState);
	    
	    setContentView(R.layout.address_list);
	    
	    ListView list=(ListView) findViewById(R.id.AddressList_listV_address);
	    
	    AddressBook ab=new AddressBook(this);
	    
	    String[][] mBook=ab.getBook();
	    
	    AddressBookListAdapter book_adapter=new AddressBookListAdapter(this, R.layout.address_list_contents, mBook);
	    
	    list.setAdapter(book_adapter);
	}

}
